<?xml version="1.0" encoding="utf-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:framework="http://symfony.com/schema/dic/symfony"
    xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
        http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">

    <framework:config http-method-override="false" handle-all-throwables="true">
        <framework:annotations enabled="false" />
        <framework:php-errors log="true" />
        <framework:messenger default-bus="messenger.bus.commands">
            <framework:bus name="messenger.bus.commands" />
            <framework:bus name="messenger.bus.events">
                <framework:middleware id="with_factory">
                    <framework:argument>foo</framework:argument>
                    <framework:argument>true</framework:argument>
                    <framework:argument>
                        <framework:bar>baz</framework:bar>
                    </framework:argument>
                </framework:middleware>
            </framework:bus>
            <framework:bus name="messenger.bus.queries" default-middleware="false">
                <framework:middleware id="send_message" />
                <framework:middleware id="handle_message" />
            </framework:bus>
        </framework:messenger>
    </framework:config>
</container>
